package com.dong;


public class Test {
    public static void main(String[] args)   {

        /*Map<Integer,String> map=new HashMap();
        map.put(1,"java");
        map.put(2,"python");
        map.put(3,"c++");
        map.forEach((key,value)->{
            System.out.print(key+": ");
            System.out.println(value);
        });*/

      /*  Iterator<Map.Entry<Integer, String>> iterator = map.entrySet().iterator();
        while (iterator.hasNext()){
            Map.Entry<Integer, String> next = iterator.next();
            System.out.print(next.getKey()+": ");
            System.out.println(next.getValue());
        }

        Iterator<Integer> iterator1 = map.keySet().iterator();
        while (iterator1.hasNext()){
            Integer next = iterator1.next();
            System.out.print(next+": ");
            System.out.println(map.get(next));
        }*/

    /*    LubanApplicationcContext lubanApplication = new LubanApplicationcContext(AppConfig.class);
        IorderService service = (IorderService) lubanApplication.getBean("orderService");
        System.out.println(service);
        service.add();*/
 //       service.teat();

     /*  ExecutorService threadPool = Executors.newFixedThreadPool(10);

        long time = System.currentTimeMillis();
        String s1 = "{\"abc\":\"1 2 3\"}";
        String s2 = "{\"msg\":\"4 5 6\"}";
        JSONObject j1= JSONObject.parseObject(s1);
        JSONObject j2=JSONObject.parseObject(s2);
        final JSONObject result = new JSONObject();
        result.putAll(j1);
        result.putAll(j2);
        System.out.println((System.currentTimeMillis() - time)/1000+"s");
        System.out.println(result.toString());
        Callable<JSONObject> callable=new Callable<JSONObject>() {
            public JSONObject call() throws Exception {
                return result;
            }
        };
        FutureTask<JSONObject> futureTask=new FutureTask<JSONObject>(callable);
        threadPool.submit(futureTask); */

    }
}


